package com.ada.lbs.v3.apps;

import com.ada.lbs.v3.domain.BoundsSearch;
import com.ada.lbs.v3.domain.LbsSearch;
import com.ada.lbs.v3.domain.LocalSearch;
import com.ada.lbs.v3.domain.Search;
import com.ada.lbs.v3.service.LbsSearchService;

public class LbsSearchApps {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		aa();
	}

	private static void ss() {
		LbsSearchService service = new LbsSearchService();
		 BoundsSearch search=new BoundsSearch();
		 search.setQ("");
		 search.setBounds("107.950524,34.269067;117.30,37.20");
		 search.setPage_size(50);
		 LbsSearch s=service.findBybound(search);
		 System.out.println(s);
	}

	private static void loc(LbsSearchService service) {
		LocalSearch search = new LocalSearch();
		search.setQ("");
		search.setRegion("西安");
		search.setPage_size(50);
		LbsSearch s = service.findBylocal(search);
		System.out.println(s);
	}

	private static void aa() {
		LbsSearchService service=new LbsSearchService();
		Search search = new Search();
		search.setQ("");
		search.setLocation("108.95272064209,34.270034790039");
		search.setPage_size(50);
		LbsSearch s = service.serachForNearby(search);
		System.out.println(s);
	}

}
